From 67d240b8f6a3dd8e72a0165549df40e470b3d5e2 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sun, 10 Sep 2017 17:57:43 -0700 Subject: [PATCH] Remove the unused variable database class. --- .../abacus/variables/VariableDatabase.kt | 37 ------------------- 1 file changed, 37 deletions(-) delete mode 100644 core/src/main/kotlin/org/nwapw/abacus/variables/VariableDatabase.kt diff --git a/core/src/main/kotlin/org/nwapw/abacus/variables/VariableDatabase.kt b/core/src/main/kotlin/org/nwapw/abacus/variables/VariableDatabase.kt deleted file mode 100644 index 405f26a..0000000 --- a/core/src/main/kotlin/org/nwapw/abacus/variables/VariableDatabase.kt +++ /dev/null @@ -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() - /** - * The definitions that are stored in the database. - */ - val definitions = mutableMapOf() - - override fun onLoad(manager: PluginManager?) { - - } - - override fun onUnload(manager: PluginManager?) { - variables.clear() - definitions.clear() - } - -} \ No newline at end of file