mirror of
https://github.com/DanilaFe/abacus
synced 2024-12-22 15:30:09 -08:00
Remove the unused variable database class.
This commit is contained in:
parent
059226a4d4
commit
67d240b8f6
|
@ -1,37 +0,0 @@
|
|||
package org.nwapw.abacus.variables
|
||||
|
||||
import org.nwapw.abacus.Abacus
|
||||
import org.nwapw.abacus.number.NumberInterface
|
||||
import org.nwapw.abacus.plugin.PluginListener
|
||||
import org.nwapw.abacus.plugin.PluginManager
|
||||
import org.nwapw.abacus.tree.TreeNode
|
||||
|
||||
/**
|
||||
* A database for variables and definition.
|
||||
*
|
||||
* The variable database is used to keep track of
|
||||
* variables and definitions throughout the calculator.
|
||||
*
|
||||
* @property abacus the Abacus instance.
|
||||
*/
|
||||
class VariableDatabase(val abacus: Abacus): PluginListener {
|
||||
|
||||
/**
|
||||
* The variables that are stored in the database.
|
||||
*/
|
||||
val variables = mutableMapOf<String, NumberInterface>()
|
||||
/**
|
||||
* The definitions that are stored in the database.
|
||||
*/
|
||||
val definitions = mutableMapOf<String, TreeNode>()
|
||||
|
||||
override fun onLoad(manager: PluginManager?) {
|
||||
|
||||
}
|
||||
|
||||
override fun onUnload(manager: PluginManager?) {
|
||||
variables.clear()
|
||||
definitions.clear()
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user