mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-18 23:08:14 +00:00
Clean unused code
This commit is contained in:
@ -2,15 +2,6 @@ import { MapNode } from "../models/map/map-node";
|
|||||||
import { MapPort } from "../models/map/map-port";
|
import { MapPort } from "../models/map/map-port";
|
||||||
|
|
||||||
|
|
||||||
// export class LinkCreated {
|
|
||||||
// constructor(
|
|
||||||
// public sourceNode: Node,
|
|
||||||
// public sourcePort: Port,
|
|
||||||
// public targetNode: Node,
|
|
||||||
// public targetPort: Port
|
|
||||||
// ) {}
|
|
||||||
// }
|
|
||||||
|
|
||||||
export class MapLinkCreated {
|
export class MapLinkCreated {
|
||||||
constructor(
|
constructor(
|
||||||
public sourceNode: MapNode,
|
public sourceNode: MapNode,
|
||||||
|
@ -7,8 +7,5 @@ class NodeEvent {
|
|||||||
) {}
|
) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class NodeDragging extends NodeEvent {}
|
|
||||||
export class NodeDragged extends NodeEvent {}
|
|
||||||
|
|
||||||
export class NodeClicked extends NodeEvent {}
|
export class NodeClicked extends NodeEvent {}
|
||||||
export class NodeContextMenu extends NodeEvent {}
|
export class NodeContextMenu extends NodeEvent {}
|
||||||
|
@ -2,7 +2,7 @@ import { Injectable, EventEmitter } from "@angular/core";
|
|||||||
|
|
||||||
import { Widget } from "./widget";
|
import { Widget } from "./widget";
|
||||||
import { SVGSelection } from "../models/types";
|
import { SVGSelection } from "../models/types";
|
||||||
import { NodeContextMenu, NodeClicked, NodeDragged, NodeDragging } from "../events/nodes";
|
import { NodeContextMenu, NodeClicked } from "../events/nodes";
|
||||||
import { CssFixer } from "../helpers/css-fixer";
|
import { CssFixer } from "../helpers/css-fixer";
|
||||||
import { FontFixer } from "../helpers/font-fixer";
|
import { FontFixer } from "../helpers/font-fixer";
|
||||||
import { select, event } from "d3-selection";
|
import { select, event } from "d3-selection";
|
||||||
@ -18,8 +18,6 @@ export class NodeWidget implements Widget {
|
|||||||
|
|
||||||
public onContextMenu = new EventEmitter<NodeContextMenu>();
|
public onContextMenu = new EventEmitter<NodeContextMenu>();
|
||||||
public onNodeClicked = new EventEmitter<NodeClicked>();
|
public onNodeClicked = new EventEmitter<NodeClicked>();
|
||||||
public onNodeDragged = new EventEmitter<NodeDragged>();
|
|
||||||
public onNodeDragging = new EventEmitter<NodeDragging>();
|
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private cssFixer: CssFixer,
|
private cssFixer: CssFixer,
|
||||||
|
Reference in New Issue
Block a user