mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-06-02 21:57:37 +02:00
Removed debug code
This commit is contained in:
parent
e2bafbdf9a
commit
44d69766b8
@ -67,7 +67,7 @@ type
|
|||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
uses
|
||||||
{$IFDEF CEF4DELHI_ALLOC_DEBUG}uCEFConstants,{$ENDIF} uCEFTypes, uCEFMiscFunctions, uCEFConstants, uCEFLibFunctions;
|
{$IFDEF CEF4DELHI_ALLOC_DEBUG}uCEFConstants,{$ENDIF} uCEFTypes, uCEFMiscFunctions;
|
||||||
|
|
||||||
|
|
||||||
// ***********************************************
|
// ***********************************************
|
||||||
@ -142,19 +142,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
constructor TCefBaseRefCountedOwn.CreateData(size: Cardinal; owned : boolean);
|
constructor TCefBaseRefCountedOwn.CreateData(size: Cardinal; owned : boolean);
|
||||||
procedure CefLog(const aFile : string; aLine, aSeverity : integer; const aMessage : string);
|
|
||||||
var
|
|
||||||
TempFile, TempMessage : AnsiString;
|
|
||||||
begin
|
|
||||||
if (length(aFile) > 0) and (length(aMessage) > 0) then
|
|
||||||
begin
|
|
||||||
TempFile := AnsiString(aFile);
|
|
||||||
TempMessage := AnsiString(aMessage);
|
|
||||||
|
|
||||||
cef_log(@TempFile[1], aLine, aSeverity, @TempMessage[1]);
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
{$IFDEF CEF4DELHI_ALLOC_DEBUG}
|
{$IFDEF CEF4DELHI_ALLOC_DEBUG}
|
||||||
GetMem(FData, size + (SizeOf(Pointer) * 3));
|
GetMem(FData, size + (SizeOf(Pointer) * 3));
|
||||||
@ -188,14 +175,6 @@ begin
|
|||||||
PCefBaseRefCounted(FData)^.has_one_ref := {$IFDEF FPC}@{$ENDIF}cef_base_has_one_ref;
|
PCefBaseRefCounted(FData)^.has_one_ref := {$IFDEF FPC}@{$ENDIF}cef_base_has_one_ref;
|
||||||
PCefBaseRefCounted(FData)^.has_at_least_one_ref := {$IFDEF FPC}@{$ENDIF}cef_base_has_at_least_one_ref;
|
PCefBaseRefCounted(FData)^.has_at_least_one_ref := {$IFDEF FPC}@{$ENDIF}cef_base_has_at_least_one_ref;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
try
|
|
||||||
if (size>250) then
|
|
||||||
raise Exception.Create('Size incorrecto');
|
|
||||||
except
|
|
||||||
on E: Exception do
|
|
||||||
CefLog('CEF4Delphi', 1, CEF_LOG_SEVERITY_ERROR, e.message + 'StackTrace: ' + e.StackTrace);
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
destructor TCefBaseRefCountedOwn.Destroy;
|
destructor TCefBaseRefCountedOwn.Destroy;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user