Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Unified Diff: client/fling/src/java/core/com/google/dart/SourceFromString.java

Issue 9314025: Remove fling, deftserver (used only by fling), and commons-codec (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: client/fling/src/java/core/com/google/dart/SourceFromString.java
===================================================================
--- client/fling/src/java/core/com/google/dart/SourceFromString.java (revision 3853)
+++ client/fling/src/java/core/com/google/dart/SourceFromString.java (working copy)
@@ -1,60 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-package com.google.dart;
-
-import com.google.dart.compiler.DartSource;
-import com.google.dart.compiler.LibrarySource;
-
-import java.io.IOException;
-import java.io.Reader;
-import java.io.StringReader;
-import java.net.URI;
-
-public class SourceFromString implements DartSource {
- private final String name;
- private final String source;
- private final LibrarySource library;
-
- SourceFromString(LibrarySource library, String name, String source) {
- this.name = name;
- this.source = source;
- this.library = library;
- }
-
- @Override
- public boolean exists() {
- return true;
- }
-
- @Override
- public long getLastModified() {
- return 0;
- }
-
- @Override
- public LibrarySource getLibrary() {
- return library;
- }
-
- @Override
- public String getName() {
- return name;
- }
-
- @Override
- public String getRelativePath() {
- return name;
- }
-
- @Override
- public Reader getSourceReader() throws IOException {
- return new StringReader(source);
- }
-
- @Override
- public URI getUri() {
- return CompileService.uriFor(name);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698