Skip to content

Commit 6c5ad0e

Browse files
committed
removed unused stream-related functions
1 parent 9616e4b commit 6c5ad0e

2 files changed

Lines changed: 0 additions & 15 deletions

File tree

lib/tokenlist.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -355,20 +355,6 @@ bool TokenList::createTokens(const uint8_t* data, size_t size, const std::string
355355

356356
//---------------------------------------------------------------------------
357357

358-
bool TokenList::createTokens(std::istream &code, Standards::Language lang)
359-
{
360-
ASSERT_LANG(lang != Standards::Language::None);
361-
if (mLang == Standards::Language::None) {
362-
mLang = lang;
363-
} else {
364-
ASSERT_LANG(lang == mLang);
365-
}
366-
367-
return createTokensInternal(code, "");
368-
}
369-
370-
//---------------------------------------------------------------------------
371-
372358
bool TokenList::createTokens(const uint8_t* data, size_t size, Standards::Language lang)
373359
{
374360
ASSERT_LANG(lang != Standards::Language::None);

lib/tokenlist.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ class CPPCHECKLIB TokenList {
113113
bool createTokens(const char (&data)[size], const std::string& file0) {
114114
return createTokens(reinterpret_cast<const uint8_t*>(data), size-1, file0);
115115
}
116-
bool createTokens(std::istream &code, Standards::Language lang);
117116
bool createTokens(const uint8_t* data, size_t size, Standards::Language lang);
118117
bool createTokens(const char* data, size_t size, Standards::Language lang) {
119118
return createTokens(reinterpret_cast<const uint8_t*>(data), size, lang);

0 commit comments

Comments
 (0)