aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Snover2017-09-22 13:26:13 -0500
committerColin Snover2017-09-23 20:37:51 -0500
commit0ceab96e9193c94e21c91e595da1d05a792b3946 (patch)
tree71de947561b498d4446134ac76280ee1121542e9
parent50cfb7ad46ff65ab038f4694bafb4d817ef8529e (diff)
downloadscummvm-rg350-0ceab96e9193c94e21c91e595da1d05a792b3946.tar.gz
scummvm-rg350-0ceab96e9193c94e21c91e595da1d05a792b3946.tar.bz2
scummvm-rg350-0ceab96e9193c94e21c91e595da1d05a792b3946.zip
SCI32: Remove unused shrink-to-fit function for string arrays
-rw-r--r--engines/sci/engine/segment.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/engines/sci/engine/segment.h b/engines/sci/engine/segment.h
index ddb34582ab..a0c9f7f0dd 100644
--- a/engines/sci/engine/segment.h
+++ b/engines/sci/engine/segment.h
@@ -531,14 +531,6 @@ public:
}
/**
- * Shrinks a string array to its optimal size.
- */
- void snug() {
- assert(_type == kArrayTypeString || _type == kArrayTypeByte);
- resize(Common::strnlen((char *)_data, _size) + 1, true);
- }
-
- /**
* Returns a pointer to the array's raw data storage.
*/
void *getRawData() { return _data; }