Clean up.

This commit is contained in:
Erik C. Thauvin 2021-10-25 13:02:57 -07:00
parent d7bdcd66d0
commit 22bf1cfed5
4 changed files with 7 additions and 17 deletions

View file

@ -31,8 +31,6 @@
*/
package net.thauvin.erik.mobibot
import java.util.Locale
/**
* The `Constants`.
*/
@ -87,11 +85,6 @@ object Constants {
*/
const val LINK_CMD = "L"
/**
* Default locale.
*/
val LOCALE: Locale = Locale.getDefault()
/**
* The empty title string.
*/

View file

@ -31,9 +31,6 @@
*/
package net.thauvin.erik.mobibot
import net.thauvin.erik.mobibot.PinboardUtils.addPin
import net.thauvin.erik.mobibot.PinboardUtils.deletePin
import net.thauvin.erik.mobibot.PinboardUtils.updatePin
import net.thauvin.erik.mobibot.Utils.appendIfMissing
import net.thauvin.erik.mobibot.Utils.buildCmdSyntax
import net.thauvin.erik.mobibot.Utils.colorize
@ -196,7 +193,7 @@ class Mobibot(nickname: String, channel: String, logsDirPath: String, p: Propert
*/
fun addPin(entry: EntryLink) {
if (isPinboardEnabled) {
addPin(pinboard, ircServer, entry)
PinboardUtils.addPin(pinboard, ircServer, entry)
}
}
@ -236,7 +233,7 @@ class Mobibot(nickname: String, channel: String, logsDirPath: String, p: Propert
*/
fun deletePin(index: Int, entry: EntryLink) {
if (isPinboardEnabled) {
deletePin(pinboard, entry)
PinboardUtils.deletePin(pinboard, entry)
}
if (twitter.isAutoPost) {
twitter.removeEntry(index)
@ -506,7 +503,7 @@ class Mobibot(nickname: String, channel: String, logsDirPath: String, p: Propert
*/
fun updatePin(oldUrl: String, entry: EntryLink) {
if (isPinboardEnabled) {
updatePin(pinboard, ircServer, oldUrl, entry)
PinboardUtils.updatePin(pinboard, ircServer, oldUrl, entry)
}
}