WIP: remove the old database abstraction layer
remove such classes: - DbBase - DbConn - DbTextStream - Db while here: - remove: TextStream, SLog, TexTextStream
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2010-2022, Tomasz Sowa
|
||||
* Copyright (c) 2010-2024, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -55,13 +55,6 @@ void Functions::SetCur(Cur * pcur)
|
||||
}
|
||||
|
||||
|
||||
|
||||
void Functions::SetDb(Db * pdb)
|
||||
{
|
||||
db = pdb;
|
||||
}
|
||||
|
||||
|
||||
void Functions::SetSystem(System * psystem)
|
||||
{
|
||||
system = psystem;
|
||||
@@ -190,7 +183,6 @@ void Functions::SetObjects(FunctionBase * fun)
|
||||
|
||||
//fun->SetConfig(config);
|
||||
//fun->SetCur(cur);
|
||||
fun->SetDb(db);
|
||||
//fun->SetSystem(system);
|
||||
fun->SetFunctions(this);
|
||||
fun->SetTemplates(templates);
|
||||
@@ -661,17 +653,17 @@ bool Functions::CheckAntispamCounter()
|
||||
|
||||
// !!uwaga zwracana wartosc zmieniona (true/false)
|
||||
// !! IMPROVE ME in emacs.cpp there is a similar function
|
||||
bool Functions::CheckAbuse(SLog * slog)
|
||||
bool Functions::CheckAbuse()
|
||||
{
|
||||
if( !system->rebus.CheckRebus() )
|
||||
{
|
||||
cur->request->status = WINIX_ERR_INCORRECT_REBUS;
|
||||
|
||||
if( slog )
|
||||
{
|
||||
// put to locale
|
||||
(*slog) << logerror << T(L"rebus_need_to_solve") << logend;
|
||||
}
|
||||
// if( slog )
|
||||
// {
|
||||
// // put to locale
|
||||
// (*slog) << logerror << T(L"rebus_need_to_solve") << logend;
|
||||
// }
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user