From cdb493b0a47bcf64e8e670b94fa399fcd731f531 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Sat, 30 Oct 2021 13:48:52 +0200 Subject: chore(web): refactor xtext client --- .../main/js/xtext/services/ValidationService.js | 33 ---------------------- 1 file changed, 33 deletions(-) delete mode 100644 language-web/src/main/js/xtext/services/ValidationService.js (limited to 'language-web/src/main/js/xtext/services/ValidationService.js') diff --git a/language-web/src/main/js/xtext/services/ValidationService.js b/language-web/src/main/js/xtext/services/ValidationService.js deleted file mode 100644 index 85c9953d..00000000 --- a/language-web/src/main/js/xtext/services/ValidationService.js +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -define(['xtext/services/XtextService', 'jquery'], function(XtextService, jQuery) { - - /** - * Service class for validation. - */ - function ValidationService(serviceUrl, resourceId) { - this.initialize(serviceUrl, 'validate', resourceId); - }; - - ValidationService.prototype = new XtextService(); - - ValidationService.prototype._checkPreconditions = function(editorContext, params) { - return this._state === undefined; - } - - ValidationService.prototype._onConflict = function(editorContext, cause) { - this.setState(undefined); - return { - suppressForcedUpdate: true - }; - }; - - return ValidationService; -}); \ No newline at end of file -- cgit v1.2.3-70-g09d2