Clean up.
This commit is contained in:
parent
d7bdcd66d0
commit
22bf1cfed5
4 changed files with 7 additions and 17 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue