summaryrefslogtreecommitdiffstats
path: root/source/core/slang-string-util.h
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2019-12-10 10:02:19 -0500
committerGitHub <noreply@github.com>2019-12-10 10:02:19 -0500
commit79ec0cfdb5f3461c763e0bf712cf42eb87fccb90 (patch)
treecf0c3c0b6e7f10d3a29930cd3aeef586298d4234 /source/core/slang-string-util.h
parent2e52217cb870b4101c1639fed78224f89bf119b3 (diff)
DownstreamCompiler abstraction (#1149)
* CPPCompiler -> DownstreamCompiler * Added DownstreamCompileResult to start abstraction such that we don't need files. * * Split out slang-blob.cpp * Made CompileResult hold a DownstreamCompileResult - for access to binary or ISlangSharedLibrary * Keep temporary files in scope. * Add a hash to the hex dump stream. * Move all file tracking into DownstreamCompiler.
Diffstat (limited to 'source/core/slang-string-util.h')
-rw-r--r--source/core/slang-string-util.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/source/core/slang-string-util.h b/source/core/slang-string-util.h
index 77b7ca2a3..16588bd35 100644
--- a/source/core/slang-string-util.h
+++ b/source/core/slang-string-util.h
@@ -11,30 +11,6 @@
namespace Slang {
-/** A blob that uses a `String` for its storage.
-*/
-class StringBlob : public ISlangBlob, public RefObject
-{
-public:
- // ISlangUnknown
- SLANG_REF_OBJECT_IUNKNOWN_ALL
-
- // ISlangBlob
- SLANG_NO_THROW void const* SLANG_MCALL getBufferPointer() SLANG_OVERRIDE { return m_string.getBuffer(); }
- SLANG_NO_THROW size_t SLANG_MCALL getBufferSize() SLANG_OVERRIDE { return m_string.getLength(); }
-
- /// Get the contained string
- SLANG_FORCE_INLINE const String& getString() const { return m_string; }
-
- explicit StringBlob(String const& string)
- : m_string(string)
- {}
-
-protected:
- ISlangUnknown* getInterface(const Guid& guid);
- String m_string;
-};
-
struct StringUtil
{
/// Split in, by specified splitChar into slices out