Skip to content

Commit

Permalink
Cleanup code
Browse files Browse the repository at this point in the history
Remove unused units and methods.
  • Loading branch information
caviola committed Dec 14, 2017
1 parent 5ae19cb commit 617049a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 15 deletions.
10 changes: 1 addition & 9 deletions AndroidDebugBridge.pas
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ TWindowManagerEntry = record
function IsServerRunning: boolean;
function StartServer: boolean;
function StopServer: boolean;
function GetDeviceSerial: string;
function GetWindowList(Timeout: integer = -1): TWindowManagerEntryArray;
function DumpWindow(const WindowHash: string;
const CheckCanceled: TObjectProcedure): TView;
Expand Down Expand Up @@ -69,7 +68,6 @@ TAdbDeviceConnection = class
procedure Disconnect; inline;
function ShellExecute(const Command: string): TStream;
procedure ConnectTcp(Port: integer);
property DeviceSerial: string read FDevice;
property Socket: TTCPBlockSocket read GetSocket;
end;

Expand All @@ -86,7 +84,6 @@ TViewServerClient = class(TInterfacedObject, IViewServerClient)
function IsServerRunning: boolean;
function StartServer: boolean;
function StopServer: boolean;
function GetDeviceSerial: string;
function GetWindowList(Timeout: integer = -1): TWindowManagerEntryArray;
// Used only for debugging purposes.
class function LoadDumpWindowFile: TView;
Expand Down Expand Up @@ -224,7 +221,7 @@ TViewServerCaptureViewTask = class(TCaptureViewTask)
implementation

uses
LazLogger, synsock;
synsock;

const
AdbServerPort = 5037;
Expand Down Expand Up @@ -500,11 +497,6 @@ function TViewServerClient.StopServer: boolean;
end;
end;

function TViewServerClient.GetDeviceSerial: string;
begin
Result := FAdbDeviceConnection.DeviceSerial;
end;

function TViewServerClient.GetWindowList(Timeout: integer): TWindowManagerEntryArray;
var
Line: string;
Expand Down
2 changes: 1 addition & 1 deletion Animators.pas
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function FloatEvaluator(const Fraction: single;
implementation

uses
CustomTimer, fgl, dateutils, LCLIntf;
CustomTimer, fgl, LCLIntf;

const
AnimationTickInterval = 10; // milliseconds
Expand Down
2 changes: 1 addition & 1 deletion DumpFileLoader.pas
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function CreateDumpFileLoadTask(const FilePath: string): TLayoutLoadTask;
implementation

uses
SysUtils, LazUTF8, laz2_XMLRead, laz2_DOM, Logging;
SysUtils, laz2_XMLRead, laz2_DOM, Logging;

type
{ TDeviceMonitorDumpLoadTask }
Expand Down
2 changes: 1 addition & 1 deletion FormOpenViewServerWindow.pas
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
interface

uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs,
SysUtils, Forms, Controls,
StdCtrls, AndroidDebugBridge;

type
Expand Down
4 changes: 2 additions & 2 deletions LayoutViewer.pas
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
interface

uses
Classes, Controls, Graphics, Menus, ExtCtrls, ViewTypes, Animators, OpenGLContext,
TaskRunner, LMessages;
Classes, Controls, Graphics, ExtCtrls, ViewTypes, Animators, OpenGLContext,
LMessages;

type

Expand Down
2 changes: 1 addition & 1 deletion ViewServerLoader.pas
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function CreateDumpWindowFileLoadTask: TLayoutLoadTask;

implementation

uses AndroidDebugBridge, Logging, Classes, Graphics, TaskRunner, GLext, gl, LCLProc;
uses AndroidDebugBridge, Logging, Graphics, TaskRunner, GLext, gl, LCLProc;

type

Expand Down

0 comments on commit 617049a

Please sign in to comment.