From: Jeff Halter Date: Sat, 7 Aug 2021 22:52:08 +0000 (-0700) Subject: Prune unused code X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/commitdiff_plain/eabc4b6cacc4749db226af272e71fcff1556f433?ds=inline Prune unused code --- diff --git a/hotline/access.go b/hotline/access.go index 707dc65..27be157 100644 --- a/hotline/access.go +++ b/hotline/access.go @@ -28,25 +28,25 @@ const ( accessOpenUser = 16 accessModifyUser = 17 // accessChangeOwnPass = 18 // Documented but unused? - accessSendPrivMsg = 19 // This doesn't do what it seems like it should do. TODO: Investigate + //accessSendPrivMsg = 19 // This doesn't do what it seems like it should do. TODO: Investigate accessNewsReadArt = 20 accessNewsPostArt = 21 accessDisconUser = 22 // Toggles red user name in user list accessCannotBeDiscon = 23 accessGetClientInfo = 24 - accessUploadAnywhere = 25 - accessAnyName = 26 - accessNoAgreement = 27 - accessSetFileComment = 28 - accessSetFolderComment = 29 - accessViewDropBoxes = 30 - accessMakeAlias = 31 + //accessUploadAnywhere = 25 + //accessAnyName = 26 + //accessNoAgreement = 27 + //accessSetFileComment = 28 + //accessSetFolderComment = 29 + //accessViewDropBoxes = 30 + //accessMakeAlias = 31 accessBroadcast = 32 accessNewsDeleteArt = 33 accessNewsCreateCat = 34 - accessNewsDeleteCat = 35 + //accessNewsDeleteCat = 35 accessNewsCreateFldr = 36 - accessNewsDeleteFldr = 37 + //accessNewsDeleteFldr = 37 ) func authorize(access *[]byte, accessBit int) bool { diff --git a/hotline/client.go b/hotline/client.go index 84126d3..6aad5a1 100644 --- a/hotline/client.go +++ b/hotline/client.go @@ -90,7 +90,6 @@ type Client struct { UI *UI - outbox chan *Transaction Inbox chan *Transaction } diff --git a/hotline/config.go b/hotline/config.go index e0c20cf..d2a8ac6 100644 --- a/hotline/config.go +++ b/hotline/config.go @@ -1,11 +1,5 @@ package hotline -const ( - defaultAgreement = "This is an agreement. Say you agree.\r" - defaultMessageBoard = "Welcome to Hotline\r" - defaultThreadedNews = "Categories:\n" -) - type Config struct { Name string `yaml:"Name"` // Name used for Tracker registration Description string `yaml:"Description"` // Description used for Tracker registration diff --git a/hotline/field.go b/hotline/field.go index b057be3..7955fe3 100644 --- a/hotline/field.go +++ b/hotline/field.go @@ -16,7 +16,7 @@ const fieldRefNum = 107 const fieldTransferSize = 108 const fieldChatOptions = 109 const fieldUserAccess = 110 -const fieldUserAlias = 111 +//const fieldUserAlias = 111 TODO: implement const fieldUserFlags = 112 const fieldOptions = 113 const fieldChatID = 114