aboutsummaryrefslogtreecommitdiff
path: root/hotline
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2021-08-07 15:52:08 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2021-08-07 15:52:08 -0700
commiteabc4b6cacc4749db226af272e71fcff1556f433 (patch)
treef4df3f243a3132bcfc8ed8fa967987ebd6f4f365 /hotline
parent9004987d8ec11b788f972e6764f875f2d873cfd6 (diff)
Prune unused code
Diffstat (limited to 'hotline')
-rw-r--r--hotline/access.go20
-rw-r--r--hotline/client.go1
-rw-r--r--hotline/config.go6
-rw-r--r--hotline/field.go2
4 files changed, 11 insertions, 18 deletions
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