diff options
Diffstat (limited to 'src/org/noreply/fancydress/type3/Path.java')
-rw-r--r-- | src/org/noreply/fancydress/type3/Path.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/org/noreply/fancydress/type3/Path.java b/src/org/noreply/fancydress/type3/Path.java index 4289f6b..8373990 100644 --- a/src/org/noreply/fancydress/type3/Path.java +++ b/src/org/noreply/fancydress/type3/Path.java @@ -12,13 +12,9 @@ public class Path { HalfPath first; HalfPath second; - public Path(Directory dir, String path) throws Mix3Exception { - int crossover = path.indexOf(':'); - if (crossover < 0) - throw new Mix3Exception("Path is not a valid path: no crossover point specified."); - - first = new HalfPath(dir, path.substring(0, crossover)); - second = new HalfPath(dir, path.substring(crossover+1)); + public Path(Hop[] leg1, Hop[] leg2) { + first = new HalfPath(leg1); + second = new HalfPath(leg2); } public HalfPath getFirstHalf() { |