Skip to content

Commit

Permalink
Remove license comment and import ParseResult directly
Browse files Browse the repository at this point in the history
  • Loading branch information
UnderscoreTud committed Sep 26, 2024
1 parent eae55c2 commit 97a33ed
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions src/main/java/ch/njol/skript/expressions/ExprMetadata.java
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
/**
* This file is part of Skript.
*
* Skript is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Skript is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Skript. If not, see <http://www.gnu.org/licenses/>.
*
* Copyright Peter Güttinger, SkriptLang team and contributors
*/
package ch.njol.skript.expressions;

import ch.njol.skript.Skript;
Expand All @@ -26,7 +8,7 @@
import ch.njol.skript.doc.Since;
import ch.njol.skript.lang.Expression;
import ch.njol.skript.lang.ExpressionType;
import ch.njol.skript.lang.SkriptParser;
import ch.njol.skript.lang.SkriptParser.ParseResult;
import ch.njol.skript.lang.util.SimpleExpression;
import ch.njol.skript.util.Utils;
import ch.njol.util.Kleenean;
Expand Down Expand Up @@ -90,7 +72,7 @@ private ExprMetadata(ExprMetadata<?> source, Class<? extends T>... types) {
}

@Override
public boolean init(Expression<?>[] exprs, int matchedPattern, Kleenean isDelayed, SkriptParser.ParseResult parseResult) {
public boolean init(Expression<?>[] exprs, int matchedPattern, Kleenean isDelayed, ParseResult parseResult) {
holders = (Expression<Metadatable>) exprs[matchedPattern ^ 1];
keys = (Expression<String>) exprs[matchedPattern];
return true;
Expand Down

0 comments on commit 97a33ed

Please sign in to comment.