diff options
author | Colin Snover | 2017-09-08 20:57:58 -0500 |
---|---|---|
committer | Colin Snover | 2017-09-08 21:10:51 -0500 |
commit | 94b39c83b6e526d6907f6d524e97183a9e774248 (patch) | |
tree | 8bac66f0864e05a0801a2dcc2f7bdba507185bea /engines/sci/engine/kstring.cpp | |
parent | 7eedfdbeaf2d1349a368ea308219f0f185322c0d (diff) | |
download | scummvm-rg350-94b39c83b6e526d6907f6d524e97183a9e774248.tar.gz scummvm-rg350-94b39c83b6e526d6907f6d524e97183a9e774248.tar.bz2 scummvm-rg350-94b39c83b6e526d6907f6d524e97183a9e774248.zip |
SCI32: Remove redundant kStringGetData implementation
This code is identical to the kArrayGetData implementation.
Diffstat (limited to 'engines/sci/engine/kstring.cpp')
-rw-r--r-- | engines/sci/engine/kstring.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/engines/sci/engine/kstring.cpp b/engines/sci/engine/kstring.cpp index 5bab422425..cbe481d343 100644 --- a/engines/sci/engine/kstring.cpp +++ b/engines/sci/engine/kstring.cpp @@ -682,14 +682,6 @@ reg_t kStringCompare(EngineState *s, int argc, reg_t *argv) { return make_reg(0, (result > 0) - (result < 0)); } -reg_t kStringGetData(EngineState *s, int argc, reg_t *argv) { - if (s->_segMan->isObject(argv[0])) { - return readSelector(s->_segMan, argv[0], SELECTOR(data)); - } - - return argv[0]; -} - reg_t kStringLength(EngineState *s, int argc, reg_t *argv) { return make_reg(0, s->_segMan->getString(argv[0]).size()); } |