@@ -130,9 +130,6 @@ public class System
130130 private static String mSessionName = null ;
131131
132132 private static String mApkVersion = null ;
133- private static String mCoreVersion = null ;
134- private static String mRubyVersion = null ;
135- private static String mMsfVersion = null ;
136133
137134 private static Object mCustomData = null ;
138135
@@ -715,40 +712,23 @@ private static String readFirstLine(String filePath) {
715712 * @return the version of the core, null if not present.
716713 */
717714 public static String getCoreVersion () {
718- if (mCoreVersion == null )
719- mCoreVersion = readFirstLine (getCorePath () + "/VERSION" );
720- return mCoreVersion ;
715+ return readFirstLine (getCorePath () + "/VERSION" );
721716 }
722717
723718 /**
724719 * get version of installed ruby
725720 * @return the installed version of ruby
726721 */
727722 public static String getLocalRubyVersion () {
728- if (mRubyVersion ==null )
729- mRubyVersion = readFirstLine (getRubyPath () + "/VERSION" );
730- return mRubyVersion ;
731- }
732-
733- public static void updateLocalRubyVersion () {
734- mRubyVersion =null ;
735- getLocalRubyVersion ();
723+ return readFirstLine (getRubyPath () + "/VERSION" );
736724 }
737725
738726 /**
739727 * get version of installed MetaSploit Framework
740728 * @return the version of installed MetaSploit Framework
741729 */
742730 public static String getLocalMsfVersion () {
743- if (mMsfVersion ==null )
744- mMsfVersion = readFirstLine (getMsfPath () + "/VERSION" );
745-
746- return mMsfVersion ;
747- }
748-
749- public static void updateLocalMsfVersion () {
750- mMsfVersion = null ;
751- getLocalMsfVersion ();
731+ return readFirstLine (getMsfPath () + "/VERSION" );
752732 }
753733
754734 public static boolean isServiceRunning (String name ){
0 commit comments