Skip to content

Commit 5a3155b

Browse files
committed
unused functions
1 parent b97e333 commit 5a3155b

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

examples/simple-tts/simple-tts.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -118,19 +118,11 @@ static std::string audio_data_from_speaker(json speaker, const outetts_version t
118118
return audio_data;
119119
}
120120

121-
static void prompt_add(std::vector<llama_token> & prompt, llama_token token) {
122-
prompt.push_back(token);
123-
}
124-
125-
static void prompt_add(std::vector<llama_token> & prompt, const std::vector<llama_token> & tokens) {
126-
prompt.insert(prompt.end(), tokens.begin(), tokens.end());
127-
}
128-
129121
static void prompt_add(std::vector<llama_token> & prompt, const llama_vocab * vocab, const std::string & txt, bool add_special, bool parse_special) {
130122
std::vector<llama_token> tmp(txt.size());
131123
auto n_tmp = llama_tokenize(vocab, txt.c_str(), txt.size(), tmp.data(), tmp.size(), add_special, parse_special);
132124
tmp.resize(n_tmp);
133-
prompt_add(prompt, tmp);
125+
prompt.insert(prompt.end(), tmp.begin(), tmp.end());
134126
}
135127

136128
static void prompt_init(std::vector<llama_token> & prompt, const llama_vocab * vocab) {

0 commit comments

Comments
 (0)