Skip to content

Commit 1811c1a

Browse files
committed
Removed unneeded Number Methods
1 parent baaacb0 commit 1811c1a

File tree

1 file changed

+0
-66
lines changed

1 file changed

+0
-66
lines changed

Source/PythonEngine.pas

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -2274,7 +2274,6 @@ TPyObject = class
22742274
function NbAdd( obj : PPyObject) : PPyObject; virtual;
22752275
function NbSubtract( obj : PPyObject) : PPyObject; virtual;
22762276
function NbMultiply( obj : PPyObject) : PPyObject; virtual;
2277-
function NbDivide( obj : PPyObject) : PPyObject; virtual;
22782277
function NbFloorDivide( obj : PPyObject) : PPyObject; virtual;
22792278
function NbTrueDivide( obj : PPyObject) : PPyObject; virtual;
22802279
function NbMatrixMultiply( obj : PPyObject) : PPyObject; virtual;
@@ -2284,20 +2283,15 @@ TPyObject = class
22842283
function NbNegative : PPyObject; virtual;
22852284
function NbPositive : PPyObject; virtual;
22862285
function NbAbsolute : PPyObject; virtual;
2287-
function NbNonZero : Integer; virtual;
22882286
function NbBool : Integer; virtual;
22892287
function NbInvert : PPyObject; virtual;
22902288
function NbLShift( obj : PPyObject) : PPyObject; virtual;
22912289
function NbRShift( obj : PPyObject) : PPyObject; virtual;
22922290
function NbAnd( obj : PPyObject) : PPyObject; virtual;
22932291
function NbXor( obj : PPyObject) : PPyObject; virtual;
22942292
function NbOr( obj : PPyObject) : PPyObject; virtual;
2295-
function NbCoerce( obj : PPPyObject) : Integer; virtual;
22962293
function NbInt : PPyObject; virtual;
2297-
function NbLong : PPyObject; virtual;
22982294
function NbFloat : PPyObject; virtual;
2299-
function NbOct : PPyObject; virtual;
2300-
function NbHex : PPyObject; virtual;
23012295
function NbInplaceAdd( obj : PPyObject): PPyObject; virtual;
23022296
function NbInplaceSubtract( obj : PPyObject): PPyObject; virtual;
23032297
function NbInplaceMultiply( obj : PPyObject): PPyObject; virtual;
@@ -7015,11 +7009,6 @@ function TPyObject.NbMultiply( obj : PPyObject) : PPyObject;
70157009
Result := nil;
70167010
end;
70177011

7018-
function TPyObject.NbDivide( obj : PPyObject) : PPyObject;
7019-
begin
7020-
Result := nil;
7021-
end;
7022-
70237012
function TPyObject.NbFloorDivide( obj : PPyObject) : PPyObject;
70247013
begin
70257014
Result := nil;
@@ -7065,11 +7054,6 @@ function TPyObject.NbAbsolute : PPyObject;
70657054
Result := nil;
70667055
end;
70677056

7068-
function TPyObject.NbNonZero : Integer;
7069-
begin
7070-
Result := -1;
7071-
end;
7072-
70737057
function TPyObject.NbBool : Integer;
70747058
begin
70757059
Result := 0;
@@ -7105,36 +7089,16 @@ function TPyObject.NbOr( obj : PPyObject) : PPyObject;
71057089
Result := nil;
71067090
end;
71077091

7108-
function TPyObject.NbCoerce( obj : PPPyObject) : Integer;
7109-
begin
7110-
Result := 0;
7111-
end;
7112-
71137092
function TPyObject.NbInt : PPyObject;
71147093
begin
71157094
Result := nil;
71167095
end;
71177096

7118-
function TPyObject.NbLong : PPyObject;
7119-
begin
7120-
Result := nil;
7121-
end;
7122-
71237097
function TPyObject.NbFloat : PPyObject;
71247098
begin
71257099
Result := nil;
71267100
end;
71277101

7128-
function TPyObject.NbOct : PPyObject;
7129-
begin
7130-
Result := nil;
7131-
end;
7132-
7133-
function TPyObject.NbHex : PPyObject;
7134-
begin
7135-
Result := nil;
7136-
end;
7137-
71387102
function TPyObject.NbInplaceAdd(obj: PPyObject): PPyObject;
71397103
begin
71407104
Result := nil;
@@ -7600,11 +7564,6 @@ function TPythonType_NbMultiply( pSelf, obj : PPyObject) : PPyObject; cdecl;
76007564
Result := PythonToDelphi(pSelf).NbMultiply( obj );
76017565
end;
76027566

7603-
function TPythonType_NbDivide( pSelf, obj : PPyObject) : PPyObject; cdecl;
7604-
begin
7605-
Result := PythonToDelphi(pSelf).NbDivide( obj );
7606-
end;
7607-
76087567
function TPythonType_NbFloorDivide( pSelf, obj : PPyObject) : PPyObject; cdecl;
76097568
begin
76107569
Result := PythonToDelphi(pSelf).NbFloorDivide( obj );
@@ -7650,11 +7609,6 @@ function TPythonType_NbAbsolute( pSelf : PPyObject ) : PPyObject; cdecl;
76507609
Result := PythonToDelphi(pSelf).NbAbsolute;
76517610
end;
76527611

7653-
function TPythonType_NbNonZero( pSelf : PPyObject ) : Integer; cdecl;
7654-
begin
7655-
Result := PythonToDelphi(pSelf).NbNonZero;
7656-
end;
7657-
76587612
function TPythonType_NbBool( pSelf : PPyObject ) : Integer; cdecl;
76597613
begin
76607614
Result := PythonToDelphi(pSelf).NbBool;
@@ -7690,36 +7644,16 @@ function TPythonType_NbOr( pSelf, obj : PPyObject) : PPyObject; cdecl;
76907644
Result := PythonToDelphi(pSelf).NbOr( obj );
76917645
end;
76927646

7693-
function TPythonType_NbCoerce( pSelf, obj : PPPyObject) : Integer; cdecl;
7694-
begin
7695-
Result := PythonToDelphi(pSelf^).NbCoerce( obj );
7696-
end;
7697-
76987647
function TPythonType_NbInt( pSelf : PPyObject ) : PPyObject; cdecl;
76997648
begin
77007649
Result := PythonToDelphi(pSelf).NbInt;
77017650
end;
77027651

7703-
function TPythonType_NbLong( pSelf : PPyObject ) : PPyObject; cdecl;
7704-
begin
7705-
Result := PythonToDelphi(pSelf).NbLong;
7706-
end;
7707-
77087652
function TPythonType_NbFloat( pSelf : PPyObject ) : PPyObject; cdecl;
77097653
begin
77107654
Result := PythonToDelphi(pSelf).NbFloat;
77117655
end;
77127656

7713-
function TPythonType_NbOct( pSelf : PPyObject ) : PPyObject; cdecl;
7714-
begin
7715-
Result := PythonToDelphi(pSelf).NbOct;
7716-
end;
7717-
7718-
function TPythonType_NbHex( pSelf : PPyObject ) : PPyObject; cdecl;
7719-
begin
7720-
Result := PythonToDelphi(pSelf).NbHex;
7721-
end;
7722-
77237657
function TPythonType_NbInplaceAdd(pSelf, obj: PPyObject): PPyObject; cdecl;
77247658
begin
77257659
Result := PythonToDelphi(pSelf).NbInplaceAdd( obj );

0 commit comments

Comments
 (0)